﻿using System.Windows;
using System.Windows.Media;

namespace LearnWPFDemo
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        MainViewModel mainViewModel = null;
        public MainWindow()
        {
            InitializeComponent();
            mainViewModel = new MainViewModel();
            this.DataContext= mainViewModel;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            mainViewModel.Value = "100";
        }

        private void TextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
        {

        }
    }
}
